package com.example.swim.Dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.swim.Pojo.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiYa
 * @create 2022-07-14 7:46
 *
 */
@Repository
@Mapper
public interface AcDao extends BaseMapper<Activity> {
    List<Activity> searchAll();
    Activity searchByName(Integer id);
    void  insertActivity(Activity ac);
    int  delActivity(Integer id);
    void updateActivity(Activity ac);
    void addNum(Integer id);
}
